// 封装请求方法
const myRequest = function(url,method,data,successCallback){
  // 获取token
  const token = wx.getStorageInfoSync("token");
     wx.request({
       url: url,
       method: method,
       data:data,
       header:{
        //  请求头
           "content-type":"application/json", //默认  
           "X-Nideshop-Token":token
       },
       success:successCallback  
     })
};
export default myRequest;
